<!-- python 示例 -->
{layout file="base.html"}
<body>

{for name="users" index="index" value="user"}
    <!-- 定义python 变量,name,char -->
    {set name = "'mnnmd'" char="1"}
    <div>{user['userid']}</div>
    <div>{user['realName']}</div>
    <div>{:user['realName']|safe}</div>
    <div>{name}</div>

    {if condition="index == 1"}
        <!-- 书写原始python  -->
        {raw break}
    {/if}
{/for}

<!--python 原始代码块 -->
{python}
age = 22;
if age > 35:
    print("dddd")
{/python}


<!-- comment python 注释标签 -->

{comment}
 什么垃圾代码,连注释都没有,没办法接手,准备跑路
{/comment}

<!-- pass 不解析模块,由此标签包含的内容,都不解析标签等内容,原样输出 -->
{pass}
 想写什么都可以,反正都不会报错,{nmm},""kksdf<imm>dfdfd</imm>
<for name="sdfdfd">
   sdf;omuynsdfb{$name
</for>
{/pass}


</body>








